package com.yang.design.behavior.observe.example2;

public class Test {
    public static void main(String[] args) {
        //创建子类，会创建父类
        LotteryService ls = new LotteryServiceImpl();
        LotteryResult result  = ls.lotteryAndMsg("1234567887654322");
        System.out.println(result);
    }
}
